[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
DO ... WHILE
The do...while statement is similar to the while statement and has
the form:
do
<statement>
while (<expression>);
<statement> will be executed at least once and will continue to be
executed repeatedly until the expression becomes 0 (FALSE). A few
examples are:
do
stat = func1();
while (stat != -1);
do
{
prints("hello");
num = num + 1;
}
while (num < 100);
See Also:
break
continue
for
while
statements
expressions
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson